package com.digital.welcome.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.digital.welcome.entity.UserDorm;
import org.mapstruct.Mapper;
import org.springframework.stereotype.Repository;

/**
 * @author 韩
 */
@Mapper
@Repository
public interface UserDormMapper extends BaseMapper<UserDorm> {

    UserDorm selectDormIdByUserName(String userName);

    UserDorm selectUserIdByDormId(String dormId);

    boolean insertUserDorm(String userName, String dormId);

    boolean deleteDormByUserName(String userName);
}
